local extension = Package:new("king_token", Package.CardPack)
Fk:loadTranslationTable{
  ["king_token"] = "王衍生牌",
}

local U = require "packages/utility/utility"



local juhuaSkill = fk.CreateTriggerSkill{
    name = "#juhua_blade_skill",
    attached_equip = "juhua_blade",
    frequency = Skill.Compulsory,
    events = {fk.DamageCaused},
    can_trigger = function(self, _, target, player, data)
      local logic = player.room.logic
      if target == player and player:hasSkill(self) and
      data.to:isKongcheng() and data.card and data.card.trueName == "slash" then
        return data.by_user
      end
    end,
    on_use = function(_, _, _, _, data)
      data.damage = data.damage * 2
    end,
  }
  Fk:addSkill(juhuaSkill)
  local juhuaBlade = fk.CreateWeapon{
    name = "juhua_blade",
    suit = Card.Spade,
    number = 1,
    attack_range = 4,
    equip_skill = juhuaSkill,
  }
  
  extension:addCard(juhuaBlade)
  
  
  
  Fk:loadTranslationTable{
    ["juhua_blade"] = "菊花刀",
    [":juhua_blade"] = "装备牌·武器<br /><b>攻击范围</b>：4<br /><b>武器技能</b>：锁定技。每当你使用【杀】对目标角色造成伤害时，若该角色没有手牌，此伤害翻倍。",
    ["#juhua_blade_skill"] = "菊花刀",
  }
  
  --[[local ty__drowning_Weapon = fk.CreateWeapon{
    name = "ty__drowning_Weapon",
    suit = Card.Diamond,
    number = 6,
    attack_range = 2,
    on_uninstall = function(self, room, player,effect)
      Weapon.onUninstall(self, room, player)
      local player = room:getPlayerById(effect.from)
      if not player.dead  then
        room:useVirtualCard("ty__drowning", effect.cards, player, table.map(effect.tos, function(id)
          return room:getPlayerById(id) end), self.name)
      end
    end,
  }
  extension:addCard(ty__drowning_Weapon)

  Fk:loadTranslationTable{
    ["ty__drowning_Weapon"] = "水淹七军剑",
    ["#ty__drowning_Weapon_skill"] = "水淹七军剑",
    ["#ty__drowning_Weapon_prohibit"] = "水淹七军剑",
    [":ty__drowning_Weapon"] = "装备牌·武器<br/><b>攻击范围</b>：2<br/>"..
    "<b>武器技能</b>：当此装备被移除出装备栏时，角色可发动一次【水淹七军】",
  }


  local ty__drowning_Armor = fk.CreateArmor{
    name = "ty__drowning_Armor",
    suit = Card.Diamond,
    number = 6,
    on_uninstall = function(self, room, player,effect)
      Armor.onUninstall(self, room, player)
      local player = room:getPlayerById(effect.from)
      if not player.dead  then
        room:useVirtualCard("ty__drowning", effect.cards, player, table.map(effect.tos, function(id)
          return room:getPlayerById(id) end), self.name)
      end
    end,
  }
  extension:addCard(ty__drowning_Armor)

  Fk:loadTranslationTable{
    ["ty__drowning_Armor"] = "水淹七军盾",
    ["#ty__drowning_Armor_skill"] = "水淹七军盾",
    ["#ty__drowning_Armor_prohibit"] = "水淹七军盾",
    [":ty__drowning_Armor"] = "装备牌·防具<br/>"..
    "<b>防具技能</b>：当此装备被移除出装备栏时，角色可发动一次【水淹七军】",
  }
  
  local ty__drowning_DefensiveRide = fk.CreateDefensiveRide{
    name = "ty__drowning_DefensiveRide",
    suit = Card.Diamond,
    number = 6,
    on_uninstall = function(self, room, player,effect)
      DefensiveRide.onUninstall(self, room, player)
      local player = room:getPlayerById(effect.from)
      if not player.dead  then
        room:useVirtualCard("ty__drowning", effect.cards, player, table.map(effect.tos, function(id)
          return room:getPlayerById(id) end), self.name)
      end
    end,
  }
  extension:addCard(ty__drowning_DefensiveRide)

  Fk:loadTranslationTable{
    ["ty__drowning_DefensiveRide"] = "水淹七军马",
    ["#ty__drowning_DefensiveRide_skill"] = "水淹七军马",
    ["#ty__drowning_DefensiveRide_prohibit"] = "水淹七军马",
    [":ty__drowning_DefensiveRide"] = "装备牌·+1马<br/>"..
    "<b>装备技能</b>：当此装备被移除出装备栏时，角色可发动一次【水淹七军】",
  }
  
  local ty__drowning_OffensiveRide = fk.CreateOffensiveRide{
    name = "ty__drowning_OffensiveRide",
    suit = Card.Diamond,
    number = 6,
    on_uninstall = function(self, room, player,effect)
      OffensiveRide.onUninstall(self, room, player)
      local player = room:getPlayerById(effect.from)
      if not player.dead  then
        room:useVirtualCard("ty__drowning", effect.cards, player, table.map(effect.tos, function(id)
          return room:getPlayerById(id) end), self.name)
      end
    end,
  }
  extension:addCard(ty__drowning_OffensiveRide)

  Fk:loadTranslationTable{
    ["ty__drowning_OffensiveRide"] = "水淹七军马",
    ["#ty__drowning_OffensiveRide_skill"] = "水淹七军马",
    ["#ty__drowning_OffensiveRide_prohibit"] = "水淹七军马",
    [":ty__drowning_OffensiveRide"] = "装备牌·-1马<br/>"..
    "<b>装备技能</b>：当此装备被移除出装备栏时，角色可发动一次【水淹七军】",
  }


  local ty__drowning_Treasure = fk.CreateTreasure{
    name = "ty__drowning_Treasure",
    suit = Card.Diamond,
    number = 6,
    on_uninstall = function(self, room, player,effect)
      Treasure.onUninstall(self, room, player)
      local player = room:getPlayerById(effect.from)
      if not player.dead  then
        room:useVirtualCard("ty__drowning", effect.cards, player, table.map(effect.tos, function(id)
          return room:getPlayerById(id) end), self.name)
      end
    end,
  }
  extension:addCard(ty__drowning_Treasure)

  Fk:loadTranslationTable{
    ["ty__drowning_Treasure"] = "水淹七军",
    ["#ty__drowning_Treasure_skill"] = "水淹七军",
    ["#ty__drowning_Treasure_prohibit"] = "水淹七军",
    [":ty__drowning_Treasure"] = "装备牌·宝物<br/>"..
    "<b>装备技能</b>：当此装备被移除出装备栏时，角色可发动一次【水淹七军】",
  }

]]















































  return extension














































